package com.librarysys.entity;

public class Manager {
    private Integer id;

    private String name;

    private String pwd;

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Manager(Integer id, String name, String pwd, Integer role) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.role = role;
    }

    private Integer role; //0代表超级管理，1表示普通

    public Manager(Integer id, String name, String pwd) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
    }

    public Manager() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }
}